<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px"><head>
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
	  <link rel="stylesheet" href="css/ui-base.css">
    <link rel="stylesheet" href="css/ui-box.css">
	<link rel="stylesheet" href="css/project/style.css">
	<link rel="stylesheet" href="css/zv_common.css">
    <script src="js/zy_control.js"></script>
	<script src="js/zy_tmpl.js"></script>
    <script src="js/main.js"></script>
	<script src="js/init.js"></script>
	<script src="js/zv_loadp.js"></script>
	<script src="js/talkingdata.js"></script>
    <style type="text/css">
	.btupd{ padding:0.3em 0}	
    </style>  
</head>
<body class="um-vp" ontouchstart   id="body">
<div id="page_1" class="ub ub-ver um-vp">
<div id="brigade_take_performance" >
</div>
</div>
<div id="LoadMore">
</div>
</body>
<script>
zy_init();
function LoadMore(page)
{
		$$("LoadMore").innerHTML = '<div style="height:2.6em;  line-height:2.6em;background:#e8e8e8; text-align:center; font-size:0.9em; color:#4d4d4d; overflow:hidden; display:block; border-top:solid #ffffff 1px">加载中...</div> ';
	ueppscript("performance_ratings","content","brigade_take_performance_page("+page+")");
}

window.uexOnload=function(type){
	//$("body").css("opacity","0");
	if(!type){
		uexWindow.setBounce("0");
	}
	brigade_take_performance();
}

var search_name    = localStorage.getItem("search_name");
function brigade_take_performance(){	
			 var strx = $$("brigade_take_performance").innerHTML;
			 var json = localStorage.getItem("zvData");
			 json=json.replace('[[', '[') 
			 json=json.replace(']]', ']') 
			// var obj  = JSON.parse(json);
			 var  objdata = strToJson(json);
			 //var objdata = obj[0].data;
			 if(objdata.length<=1)
			 {
			 	var b_height=$$("body").offsetHeight
				strx='<div  style="width:100%; text-align:center;line-height:'+b_height+'px;"><img src="images/nodata.png" style="width:40%; text-align:center;"></div>'
			 }
			 else
			 {
			 	for(var i=1;i<objdata.length;i++)	
			 	{
				 	var orderx=parseInt(i)%4;
					if(parseInt(orderx)==0)
					{
						orderx= 4;
					}
					strx += '<div class="zv_lbg'+orderx+' ub zv_bb tx-c zv_font btupd">'
					strx += '<div class=" umw3 uinn">'
					strx += '<div class="zv_hh1 ">'+objdata[i].姓名+'</div>'
					strx += '<div class="zv_hh1 ">'+objdata[i].员工编号+'</div>'
					strx += '</div>'
					strx += '<div class="ub-f1 ub ub-ver tx-c zv_font">'
					strx += '<div class="zv_h1">工分值</div>'
					strx += '<div class="zv_h2">'+objdata[i].工分值+'</div>'
					strx += '<div class="zv_h1">工作量考核分值</div>'
					strx += '<div class="zv_h2">'+objdata[i].工作量考核分值+'</div>'
					strx += '</div>'
					strx += '<div class="umw6 ub ub-ver tx-c zv_font" style="padding-right:0.8em">'
					strx += '<div class="zv_h1">工作质考核分值</div>'
					strx += '<div class="zv_h2">'+objdata[i].工作质考核分值+'</div>'
					strx += '<div class="zv_h1">绩效考核总分值</div>'
					strx += '<div class="zv_h2">'+objdata[i].绩效考核总分值+'</div>'
					strx += '</div>'
					strx += '</div>'
				 }
				 var page = localStorage.getItem("brigade_take_performance_page");
				 var total_number=objdata[0].total
				 var current_number=parseInt(page)*20
				 if(current_number<total_number)
				 {
				 	 var nextpage = parseInt(page)+1;
				 	 $$("LoadMore").innerHTML='<div style="height:2.6em;  line-height:2.6em;background:#e8e8e8; text-align:center; font-size:0.9em; color:#4d4d4d; overflow:hidden; display:block; border-top:solid #ffffff 1px" onclick="LoadMore('+nextpage+')">加载更多</div>'
				 }
				 else
				 {
				 	$$("LoadMore").innerHTML=''
				 }
			 }
			 $$("brigade_take_performance").innerHTML=strx;
    		$("body").animate({opacity:1},500);
}	
</script>
</html>
